window.onload = function () {
    var books = JSON.parse(sessionStorage.getItem('bookInformation'))

    var strHTML = `
                <tr>
                    <td>图书名称：</td>
                    <td>作者：</td>
                    <td>图书数量：</td>
                    <td>图书金额：</td>
                </tr>`
    for (var i = 0; i <= books.length; i++) {
        strHTML += `<tr>
                    <td>${books[i].bName}</td>
                    <td>${books[i].bAuthor}</td>
                    <td>${books[i].bPrice}</td>
                    <td>${books[i].bNum}</td>
                </tr>`

    }
    console.log(strHTML)
    document.querySelector('.container').innerHTML = strHTML
}
